package com.lmig.ci.camel.processor;

import org.apache.camel.Exchange;
import org.apache.camel.Processor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class TestingProcessor implements Processor {
	private static final Logger LOG = LoggerFactory
			.getLogger(TestingProcessor.class);

	public void handleStuff() {
		LOG.info("==========>#handleStuff" + this.getClass().getSimpleName()
				+ "<========");

	}

	@Override
	public void process(Exchange exchange) throws Exception {
		LOG.info("==========>" + this.getClass().getSimpleName() + " "
				+ exchange.getIn().getHeaders() + "<========");

		handleStuff();
	}

}
